<?php
$this->pageTitle = Lang::t('user.set.new.password.page.breadcrumbs');
$this->breadcrumbs[] = Lang::t('user.set.new.password.page.breadcrumbs');
?>
<div class="form">
    <?php 
    $formConfig['htmlOptions']['class']='form-horizontal';
    $formConfig['htmlOptions']['role']='form';
    ?>
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>

    <h1><?php echo Lang::t('user.set.new.password.page.title'); ?></h1>
    <span class="help-block"><?php echo Lang::t('user.set.new.password.form.note'); ?></span>

    <?php
    echo $form->alert($model, array(
        'errorMessageHtmlOptions' => array('class' => 'alert alert-danger'),
        'flashHtmlOptions' => array('class' => 'alert alert-'),
    ));
    ?>

    <div class="form-group">
        <?php echo $form->labelEx($model, 'password_', array('class' => 'col-sm-3 control-label')); ?>
        <div class="col-sm-6">
            <?php echo $form->passwordField($model, 'password_', array('class' => 'form-control')); ?>
        </div>
        <?php //echo $form->error($model,'password_');  ?>
    </div>
    
    <div class="form-group">
        <?php echo $form->labelEx($model, 'password2_', array('class' => 'col-sm-3 control-label')); ?>
        <div class="col-sm-6">
            <?php echo $form->passwordField($model, 'password2_', array('class' => 'form-control')); ?>
        </div>
        <?php //echo $form->error($model,'password2_');  ?>
    </div>

    <div class="form-group">
        <div class="col-sm-6 col-sm-offset-3">
        <button type="submit" class="btn btn-default" /><?php echo Lang::t('user.set.new.password.btn.submit'); ?></button>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->